/**
 * 加载栏目
 * @returns
 */
export const useLoadChannelList = () => {
    return useHttpPost(`/channel/list`,{})
}

/**
 * 加载栏目
 * @returns
 */
export const useLoadChannelZonesList = () => {
    return useHttpPost(`/channel/zones`,{})
}

/**
 * 加载明细
 * @returns
 */
export const useGetChannelDetail = (id) => {
    return useHttpPost(`/channel/get/${id}`,{})
}

/**
 * 栏目订单
 * @returns
 */
export const useLoadChannelOrderList = () => {
    return useHttpPost(`/v1/channel/find/order`,{})
}


/**
 * 兑换栏目
 * @param {*} body
 * @returns
 */
export const useDuhuanChannelApi = (code,channelId) => {
    return useHttpPost(`/v1/channel/code/dh?channelId=${channelId}&code=${code}`,{})
}

/**
 * 学习币兑换课程
 * @param {*} body
 * @returns
 */
export const useDuhuanCoinChannelApi = (noteId) => {
    return useHttpPost(`/v1/channel/coin/dh?noteId=${noteId}`,{})
}